Optimal. Leaf size=75 \[ \frac {(b c-a d)^2}{c d^2 \sqrt {c+d x^2}}+\frac {b^2 \sqrt {c+d x^2}}{d^2}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {457, 89, 65,
214} \begin {gather*} -\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{3/2}}+\frac {(b c-a d)^2}{c d^2 \sqrt {c+d x^2}}+\frac {b^2 \sqrt {c+d x^2}}{d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 89
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2}{x \left (c+d x^2\right )^{3/2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(a+b x)^2}{x (c+d x)^{3/2}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (-\frac {(b c-a d)^2}{c d (c+d x)^{3/2}}+\frac {b^2}{d \sqrt {c+d x}}+\frac {a^2}{c x \sqrt {c+d x}}\right ) \, dx,x,x^2\right )\\ &=\frac {(b c-a d)^2}{c d^2 \sqrt {c+d x^2}}+\frac {b^2 \sqrt {c+d x^2}}{d^2}+\frac {a^2 \text {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )}{2 c}\\ &=\frac {(b c-a d)^2}{c d^2 \sqrt {c+d x^2}}+\frac {b^2 \sqrt {c+d x^2}}{d^2}+\frac {a^2 \text {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{c d}\\ &=\frac {(b c-a d)^2}{c d^2 \sqrt {c+d x^2}}+\frac {b^2 \sqrt {c+d x^2}}{d^2}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 75, normalized size = 1.00 \begin {gather*} \frac {-2 a b c d+a^2 d^2+b^2 c \left (2 c+d x^2\right )}{c d^2 \sqrt {c+d x^2}}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{c^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 100, normalized size = 1.33
method | result | size |
default | \(b^{2} \left (\frac {x^{2}}{d \sqrt {d \,x^{2}+c}}+\frac {2 c}{d^{2} \sqrt {d \,x^{2}+c}}\right )-\frac {2 a b}{d \sqrt {d \,x^{2}+c}}+a^{2} \left (\frac {1}{c \sqrt {d \,x^{2}+c}}-\frac {\ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )}{c^{\frac {3}{2}}}\right )\) | \(100\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 90, normalized size = 1.20 \begin {gather*} \frac {b^{2} x^{2}}{\sqrt {d x^{2} + c} d} - \frac {a^{2} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{c^{\frac {3}{2}}} + \frac {a^{2}}{\sqrt {d x^{2} + c} c} + \frac {2 \, b^{2} c}{\sqrt {d x^{2} + c} d^{2}} - \frac {2 \, a b}{\sqrt {d x^{2} + c} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.48, size = 232, normalized size = 3.09 \begin {gather*} \left [\frac {{\left (a^{2} d^{3} x^{2} + a^{2} c d^{2}\right )} \sqrt {c} \log \left (-\frac {d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) + 2 \, {\left (b^{2} c^{2} d x^{2} + 2 \, b^{2} c^{3} - 2 \, a b c^{2} d + a^{2} c d^{2}\right )} \sqrt {d x^{2} + c}}{2 \, {\left (c^{2} d^{3} x^{2} + c^{3} d^{2}\right )}}, \frac {{\left (a^{2} d^{3} x^{2} + a^{2} c d^{2}\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) + {\left (b^{2} c^{2} d x^{2} + 2 \, b^{2} c^{3} - 2 \, a b c^{2} d + a^{2} c d^{2}\right )} \sqrt {d x^{2} + c}}{c^{2} d^{3} x^{2} + c^{3} d^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 14.81, size = 70, normalized size = 0.93 \begin {gather*} \frac {a^{2} \operatorname {atan}{\left (\frac {\sqrt {c + d x^{2}}}{\sqrt {- c}} \right )}}{c \sqrt {- c}} + \frac {b^{2} \sqrt {c + d x^{2}}}{d^{2}} + \frac {\left (a d - b c\right )^{2}}{c d^{2} \sqrt {c + d x^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.59, size = 82, normalized size = 1.09 \begin {gather*} \frac {a^{2} \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c} c} + \frac {\sqrt {d x^{2} + c} b^{2}}{d^{2}} + \frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{\sqrt {d x^{2} + c} c d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 76, normalized size = 1.01 \begin {gather*} \frac {b^2\,\sqrt {d\,x^2+c}}{d^2}-\frac {a^2\,\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )}{c^{3/2}}+\frac {a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2}{c\,d^2\,\sqrt {d\,x^2+c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________